package dataflowscheme.engine.core;

/**
 * Event created by Main thread intended to stop the Event Parser
 * 
 * @author <a href="mailto:misiak7@gmail.com">Michal Antolik</a>
 *
 */
public class EventParserEndEvent implements IEvent {

	private final EventParser parser;
	
	public EventParserEndEvent(EventParser parser) {
		this.parser = parser;
	}
	
	/* (non-Javadoc)
	 * @see dataflowscheme.engine.core.IEvent#execute()
	 */
	public void execute() {
		parser.stop();
	}

}
